package com.itita.ww2.utils;

import com.smartfoxserver.v2.entities.User;
import com.smartfoxserver.v2.security.DefaultPermissionProfile;

public class UserUtil {

	public static final boolean isGuest(User user) {
		return user.getPrivilegeId() == DefaultPermissionProfile.GUEST.getId();
	}

	public static final boolean isAdmin(User user) {
		return user.getPrivilegeId() == DefaultPermissionProfile.ADMINISTRATOR.getId();
	}

}
